package com.quanyan.common.exception;

/**
 * _oo0oo_
 * 088888880
 * 88" . "88
 * (| -_- |)
 * 0\ = /0
 * ___/'---'\___
 * .' \\|     |// '.
 * / \\|||  :  |||// \
 * /_ ||||| -:- |||||- \
 * |   | \\\  -  /// |   |
 * | \_|  ''\---/''  |_/ |
 * \  .-\__  '-'  __/-.  /
 * ___'. .'  /--.--\  '. .'___
 * ."" '<  '.___\_<|>_/___.' >'  "".
 * | | : '-  \'.;'\ _ /';.'/ - ' : | |
 * \  \ '_.   \_ __\ /__ _/   .-' /  /
 * ====='-.____'.___ \_____/___.-'____.-'=====
 * '=---='
 * <p/>
 * ^^^^^^^^^^^^^^^^^愿天堂没有代码^^^^^^^^^^^^^^^^^^^
 * ^^^^^^^^^^^^^Willing Heaven No Code^^^^^^^^^^^^^
 *
 * @author
 * @date 15/12/10-23:43
 */
public class OrderRefundException extends Exception{

    private Integer orderId;

    private Integer uid;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }


    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    private static final long serialVersionUID = -2411085055825610813L;

    public OrderRefundException(String errMsg, RuntimeException e) {
        super(errMsg, e);
    }

    public OrderRefundException(RuntimeException e) {
        super(e.getMessage(), e);
    }

    public OrderRefundException(String errMsg, Integer uid, Integer orderId){
        super(errMsg);
        this.uid = uid;
        this.orderId = orderId;
    }
}
